package com.efast.dmom.mes.dao.entity;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.efast.dmom.mes.bean.Equipment;
import com.efast.dmom.mes.dao.base.PlantModelBaseEntityDao;
import com.efast.dmom.mes.entity.EquipmentEntity;

/**
 * @author Aaron Liu
 *
 * @date:2020年2月4日
 */
public interface EquipmentDao extends PlantModelBaseEntityDao<EquipmentEntity>{

	void saveEquipmentList(List<Equipment> entityList);
	
	List<EquipmentEntity> selectEquipBaseInfoData();
	
	List<EquipmentEntity> selectEquipSpareDaoJuInfo();
	
	List<EquipmentEntity> selectEquipSpareDaoJuInfoByCode(@Param("code") String code);
	
	int updateStatusById(@Param("spareStorageId")Long spareStorageId,@Param("status")int status);
	
	EquipmentEntity selectEquipSpareDaoJuInfoByDaoJuCode(@Param("cutterCode") String cutterCode);

	int updateStatusBySpareId(@Param("spareId") long spareId,@Param("status") int status);
}
